import request from '@/utils/request'

// 查询测试啊啊啊列表
export function listTest(query) {
  return request({
    url: '/business/test/list',
    method: 'get',
    params: query
  })
}

// 查询测试啊啊啊所有列表
export function listAllTest(query) {
  return request({
    url: '/business/test/listAll',
    method: 'get',
    params: query
  })
}

// 查询测试啊啊啊详细
export function getTest(id) {
  return request({
    url: '/business/test/getInfo/' + id,
    method: 'get'
  })
}

// 新增测试啊啊啊
export function addTest(data) {
  return request({
    url: '/business/test/add',
    method: 'post',
    data: data
  })
}

// 修改测试啊啊啊
export function updateTest(data) {
  return request({
    url: '/business/test/edit',
    method: 'post',
    data: data
  })
}

// 删除测试啊啊啊
export function delTest(id) {
  return request({
    url: '/business/test/remove/' + id,
    method: 'get'
  })
}
